search = () ->
	data = {data: $('.search-form form').serialize()}
	$.fn.yiiGridView.update 'measurement-grid', data
	return false;
	
$('#search').on 'click', search
